#include "file_bit.h"

int file_bit_store( FILE *f, buf *b )
{
	int32_t i,j;
	for ( i=0; i<b->size; i++ )
	{
		uint8_t d = b->data[i];

		for ( j=0; j<8; j++)
		{
			uint8_t c = ((d>>j)&0x1) + '0';
			fwrite( &c, 1, 1, f );
		}
	}
	return 0;
}


int file_bit_load( FILE *f, buf *b )
{
	return 0;
}

